/**
 * Created by 春旺 on 2017/3/24.
 */
//**********************************************************************************************************************
// Primes.java            Java Foundations
//
//Demonstrates the use of an initializer list for an array.
//**********************************************************************************************************************

public class Prime
{
    //-----------------------------------------------------------------------------------------------------------------
    // Stores some prime number in an prints them.
    //------------------------------------------------------------------------------------------------------------------

    public static void main(String[] args)
    {
        int[] primeNums = {2, 3, 5, 7, 11, 13, 17, 19};

        System.out.println("Array length: " + primeNums.length);
        System.out.println("The first few prime number are: ");

        for (int prime : primeNums)
            System.out.print (prime + "  ");

    }
}
